package com.bsoft.exchange.controller.appointmentandregistration;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bsoft.exchange.domain.Number;
import com.bsoft.exchange.pojo.ListNumberPojo;
import com.bsoft.exchange.response.ResponseEntity;
import com.bsoft.exchange.service.NumberService;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "appointment")
public class NumberController {
	@Autowired
	private NumberService numberService;
	@ApiOperation(value = "4.1.5排班信息获取")
	@RequestMapping(value = "/listNumber",method = RequestMethod.POST,produces = "application/json")

	public ResponseEntity<List<Number>> selectList(@RequestBody ListNumberPojo listNumberPojo) {
		List<Number> numberlist = numberService.selectList(listNumberPojo);
		
			ResponseEntity<List<Number>> entity=new ResponseEntity<>();
			
			entity.setData(numberlist);
			
			return entity;
	}

}